<?php
//miniamazon, xmobile plugin v1.1b
//wye , http://never-ever.info/
//miniamazon.php --> (dirname).php  
///////////////////////////////////////////////////////////////////////////////////////////////////
if(!defined('XOOPS_ROOT_PATH')) exit();
require_once XOOPS_TRUST_PATH.'/modules/miniamazon/class/XmobilePlugin.class.php' ;

$mydirname = substr( basename( __FILE__ ) , 0 , -4 ) ;
$Pluginname = ucfirst($mydirname);
if(!preg_match("/^\w+$/", $Pluginname))
{
	trigger_error('Invalid pluginName');
	exit();
}


eval('
class Xmobile'. $Pluginname .'Plugin extends XmobileMiniamazonPluginAbstract
{
	function Xmobile'. $Pluginname .'Plugin()
	{
		$this->__construct( "'.$mydirname.'" ) ;
	}
}

class Xmobile'. $Pluginname .'PluginHandler extends XmobileMiniamazonPluginHandlerAbstract
{
	function Xmobile'. $Pluginname .'PluginHandler( $db )
	{
		$this->__construct( "'.$mydirname.'" , $db ) ;
	}
}
' ) ;


?>